#include <stdio.h>
#include "lib_debug.h"
#include "lib_config.h"
#include "lib_ArrayList.h"
#include <stddef.h>

int main()
{
	//lib_debug_e("%d,%d\n",	lib_g_false,	lib_g_true);
	lib_s_ArrayList*	arrayList =	lib_ArrayList_init(0);
	int	i	=	0;
	size_t	size	=	30;

	for(i	=	0;	i	<	size;	i++)
	{
		printf("&i=%p\n",	&i);
		arrayList->add(arrayList,	&i);
	}

	int	hope	=	arrayList->size();
	for(i	=	0;	i	<	hope;	i++)
	{
		int*	temp	=	arrayList->get(arrayList,	i);
		printf("temp=%d\n",	*temp);
	}
	return 0;
}
